package com.open4cn.simulator.core.answer;

/**
 * @author yinxiaopeng
 * @version 1.0.0
 * @company 致景科技
 * @department 飞梭BU/研发
 * @description 指令应答触发动作
 * @Email yinxiaopeng@zj.tech
 * @date 2022-05-05 13:46
 */
public abstract class AbstractAction {

    protected AbstractAction action;

    protected AbstractAction(AbstractAction action) {
        this.action = action;
    }

    public abstract void action(Object... params);

    public boolean hasNext() {
        return null != action;
    }

}
